package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nengchuan.kbms.dfs.annotation.Relation;
import com.nengchuan.model.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 我的操作历史 DTO
 * </p>
 *
 * @author abe
 * @since 2020-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserOperateHistoryPageDTO 对象", description = "我的操作历史 DTO")
public class UserOperateHistoryPageDTO extends PageDTO {

    @ApiModelProperty(value = "操作类型", position = 10)
    @Relation
    private String optTypeCode;

    @ApiModelProperty(value = "操作结果", position = 20)
    @Relation
    private String optResult;

    @ApiModelProperty(value = "操作时间（开始）", position = 30)
    @Relation(value = Relation.Bind.GE, field = "create_time")
    private Long createTimeBegin;

    @ApiModelProperty(value = "操作时间（结束）", position = 40)
    @Relation(value = Relation.Bind.LE, field = "create_time")
    private Long createTimeEnd;

    @ApiModelProperty(value = "操作人", hidden = true)
    @JsonIgnore
    @Relation
    private Long createId;

}
